Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Prev/Next Img status bar button behavior #1270

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

windymilla
Copy link
Collaborator

Historically < and > in status bar used to cause the Adjust Page Markers dialog to be popped, and the "previous" and "next" image moved to were actually the ones before/after the one displayed in that dialog, regardless of where the cursor was in the file.
Now that the dialog is not popped, these buttons should go back/forward a page from the current location. This had a bug, due to combining my with if, so location wasn't reset properly, and back/forward remembered where it had previously gone even if the cursor had moved.

Behavior now consistent, with only complication being when there are 2 coincident page markers, when it has to jump over them both, since there is no location in the file that lies between them.

Fixes #1269

Historically `<` and `>` in status bar used to cause the Adjust
Page Markers dialog to be popped, and the "previous" and
"next" image moved to were actually the ones before/after
the one displayed in that dialog, regardless of where the cursor
was in the file.
Now that the dialog is not popped, these buttons should go
back/forward a page from the current location. This had a bug,
due to combining `my` with `if`, so location wasn't reset properly,
and back/forward remembered where it had previously gone
even if the cursor had moved.

Behavior now consistent, with only complication being when there
are 2 coincident page markers, when it has to jump over them
both, since there is no location in the file that lies between them.

Fixes DistributedProofreaders#1269
@windymilla windymilla requested review from cpeel and srjfoo October 23, 2023 20:36
@windymilla windymilla merged commit 19fcf49 into DistributedProofreaders:master Nov 2, 2023
1 check passed
@windymilla windymilla deleted the page-numbers branch November 2, 2023 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prev/next page buttons malfunction after setting and changing Page Lbl
3 participants